package org.dtrd.modules.shop.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.shop.entity.po.DtrdEntShcRdGlucometerGet;
import java.util.Date;

/**
 * <p>
 * 血糖仪领用表
 * </p>
 *
 * @author xiao
 * @since 2022-06-29
 */
@Getter
@Setter
@ApiModel(value = "血糖仪领用表详情")
public class GlucometerGetDetail {

    private Integer dataId;

    @ApiModelProperty("患者ID")
    private Integer patientId;

    @ApiModelProperty("医生ID")
    private Integer doctorId;

    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("扫码时间")
    private Date scanTime;

    @ApiModelProperty("领取状态：0-未领取，1-已领取，2-已领取未上传")
    private Integer getStatus;

    @ApiModelProperty("旧血糖仪照片")
    private String oldGlucometerImage;



    public GlucometerGetDetail parseFromPo(DtrdEntShcRdGlucometerGet po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        doctorId = po.getDoctorId();
        orderId = po.getOrderId();
        scanTime = po.getScanTime();
        getStatus = po.getGetStatus();
        oldGlucometerImage = po.getOldGlucometerImage();
        return this;
    }
}
